export function times(val) {
  const time = new Date(val)

  const y = time.getFullYear()
  const m = time.getMonth() + 1
  const d = time.getDate()
  const hh = time.getHours()
  const mm = time.getMinutes()
  const ss = time.getSeconds()

  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
}